package com.youdianda.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BaseInfoVO implements Serializable {

    //首页统计信息

    //管理员数量,查sys_user
    private Integer admin_num;
    //广告图总数,查ydd_advimg
    private Integer advimg_num;
    //广告位总数,查ydd_advpos
    private Integer advpos_num;
    //分类的相关数据的集合
    private List<BaseInfoAllCateVO> all_cate;
    //文章总数,查ydd_article
    private Integer article_num;
    //分类数量,查ydd_cate
    private Integer cate_num;
    //热点文章的数据的集合,查ydd_article,判断热点文章要ishot和ishop两个字段为1且只传7个
    private List<BaseInfoHotArticleVO> hot_article;
    //最新用户数据集合,查ydd_user,判断新用户是id最大且只传7个
    private List<BaseInfoNewUserVO> new_user;
    //标签数量,查ydd_tag
    private Integer tag_num;
    //用户和用户性别相关的数据合,查ydd_user
    private BaseInfoUserVO user;
}
